import request from '@/api/axios';
import { ResultData, Result } from '@/api/types';
import { SearchRes, HotItem } from '@/components/search-box/types'
/**
 * @description: 热搜列表
 */
export const searchHotApi = () => request<ResultData<HotItem[]>>({
    url: '/search/hot/detail',
})
/**
 * @description: 搜索关键词
 */
export const searchSuggestApi = (keywords: string) => request<Result<SearchRes>>({
    url: '/search/suggest',
    params: {
        keywords,
    },
})

